home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ IIS Messages 1.xpl < prev    next >
Text File  |  2002-12-05  |  1KB  |  46 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="1"
  3. "COUNT"="1"
  4. "UIPATH"="Internet\Internet Information Server\System"
  5. "NAME"="Messages"
  6. "VERSION"="1.17"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Access Denied"
  9. "DESCRIPTION 1"="The "Access Denied" message is sent to the user if he has tried to get a file and he has no permissions to get it."
  10. "DESCRIPTION 2"="NOTE: This settings also affect Personal Web Server (PWS)."
  11. "AUTHOR"="Xteq Systems"
  12. "CONTACTURL"="http://www.xteq.com"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"=" "
  15.  
  16.  
  17. 'Declaration of some constants
  18. sPC="HKLM\System\CurrentControlSet\Services\W3SVC\Enum\"
  19. sP="HKLM\System\CurrentControlSet\Services\W3SVC\Parameters\"
  20. sP2="HKLM\System\CurrentControlSet\Services\InetInfo\Parameters\"
  21. vAD="AccessDeniedMessage" 'string
  22.  
  23. 'Called when the Plugin is started
  24. Sub Plugin_Initialize
  25.  if RegPathExists(sPC) then
  26.   s=RegReadValue(sp & vAD)
  27.   SetUIElement 1,s
  28.  else
  29.   Disable
  30.  end if
  31. End Sub
  32.  
  33. 'Called when the Plugin should validate the Data the user has entered
  34. Sub Plugin_CheckData(ElementIndex)
  35. End Sub
  36.  
  37. 'Called when the Plugin should apply the changes
  38. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  39.  s=GetUIElement(1)
  40.  Call RegWriteValue(sp & vad,s,1)
  41. End Sub
  42.  
  43. 'Called when the Plugin is about to be removed from memory
  44. Sub Plugin_Terminate
  45. End Sub
  46.